﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Zy.Shared.Repository.ClickHouse;

namespace Zy.Shared.Audit.LogEntity
{
    /// <summary>
    /// 审计日志实体
    /// </summary>
    [SugarTable(TableDescription = "审计日志表",TableName ="audit_log")]
    public class AuditLogEntity:SqlSugarAuditEntity
    {
        /// <summary>
        /// 方法名称
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)",ColumnDescription ="方法名称",ColumnName ="method_name")]
        public string MethodName { get; set; }
        /// <summary>
        /// 操作名称
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)", ColumnDescription = "操作名称", ColumnName = "operation_name")]
        public string OperationName { get; set;}
        /// <summary>
        /// 返回值
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(4096)", ColumnDescription = "返回值", ColumnName = "return_value")]
        public string ReturnValue { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(4096)", ColumnDescription = "参数", ColumnName = "parameters")]
        public string Parameters { get; set; }
    }
}
